/**
 * Created by LJY on 2017/3/15.
 */

import java.util.Random;

class Card{
    public String num;
    public String color;
    Card(String color,String num){
        this.num=num;
        this.color=color;
    }

}

class Desk{
    Card card[];
    public void fun1(){
        String num[]={"1","2","3","4","5","6","7","8","9","10","J","Q","K"};
        String color[]={"梅花","红桃","黑桃","方片"};
        card=new Card[52];
        for(int i=0;i<52;i++){
            card[i]=new Card(color[i/13],num[i%13]);
        }
    }
    public void Shuffle(){
        Random ran=new Random();
        ;
        for(int i=0;i<52;i++){
            int j=ran.nextInt(52);
            Card temp=card[i];
            card [i]=card[j];
            card [j]=temp;
        }
    }
    public void Print(){
        for(int i=0;i<52;i++){
            System.out.printf("%s:%s    ",card[i].color,card[i].num);
        }
    }
}



public class Poker {
    public static void main(String[] args) {
        Desk pk=new Desk();
        pk.fun1();
        pk.Shuffle();
        pk.Print();
    }
}
